import request from './request';
export function getOrderList(data) {
  return request({
    url: '/cemBusinessOrder/getOrderList',
    method: 'get',
    params: data
  })
}
//获取已分配订单列表
export function getorderAchList(data) {
  return request({
    url: '/cemBusinessOrder/orderAchList',
    method: 'get',
    params: data
  })
}
export function editOrderList(data) {
  return request({
    url: '/cemBusinessOrder/updateOrder',
    method: 'post',
    data
  })
}

export function getBranchUserList(data) {
  return request({
    url: '/cemBusinessOrder/getOrderAllotPeople',  ///cemBusinessOrder/getOrderAllotPeople
    method: 'get',
    params: data
  })
}
export function addAchievement(data) {
  return request({
    url: '/cemBusinessOrder/updateAchievement',
    method: 'post',
    data
  })
}

export function addAchievementList(data) {
  return request({
    url: '/cemBusinessOrder/allotAchievement',
    method: 'post',
    data
  })
}

export function delAchievement(data) {
  return request({
    url: '/cemBusinessOrder/deleteOrders',
    method: 'post',
    data
  })
}

export function getBusProductList(data) {
  return request({
    url: '/cemBusinessOrder/getBusProductList',
    method: 'get',
    params: data
  })
}
export function getBusinessUserList(data) {
  return request({
    url: '/user/findBusinessUser',
    method: 'get',
    params: data
  })
}
